package com.demo.spring.循环依赖.lazy;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("com.demo.spring.循环依赖.lazy");
		Test2 t2 = ((Test1)context.getBean(Test1.class)).getTest2();
		t2.say();
		t2.say();
	}

}
